package org.libgdxbar.projects.interfaces.animation;

import com.badlogic.gdx.graphics.g2d.Animation;

public abstract class TrackEntry {
	protected IGdxAnimation animation;
	protected IAnimationListener listener;
	protected Object entryData;

	public TrackEntry() {
	}

	public TrackEntry(TrackEntry other) {
		this.animation = other.animation;
		this.listener = other.listener;
	}

	public void setAnimation(IGdxAnimation animation) {
		this.animation = animation;
	}

	public IGdxAnimation getAnimation() {
		return animation;
	}

	public TrackEntry setListener(IAnimationListener listener) {
		this.listener = listener;
		return this;
	}

	public IAnimationListener getListener() {
		return listener;
	}

	public void setEntryData(Object data) {
		this.entryData = data;
	}

	public Object getEntryData() {
		return entryData;
	}

}
